package com.chatdating.mapper;

import com.chatdating.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TagMapper {
    @Select("select tf.* from user u join user_tag_form utf on utf.user_id = u.id join tag_form tf on utf.tag_id = tf.id where u.id = #{id}")
    List<Tag> findAll(Integer id);
}
